<extend name="Base:main" />
<block name="title"><title>约信管理</title></block>
<block name="content">
<div class="row">
    <div class="box col-md-12">
    <div class="box-inner">
    <div class="box-header well" data-original-title="">
        <h2><i class="glyphicon glyphicon-home"></i>模块管理</h2>

        <div class="box-icon">
            <a data-target="#myModal" data-toggle="modal" href="__CONTROLLER__/add" class="btn btn-add btn-round btn-default"><i class="glyphicon glyphicon-plus"></i></a>
            <a href="#" class="btn btn-minimize btn-round btn-default"><i
                    class="glyphicon glyphicon-chevron-up"></i></a>
            <a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a>
        </div>
    </div>
    <div class="box-content">
    <div class="alert alert-info">对模块进行查看以及管理</div>
    <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
    <thead>
    <tr>
        <th>序号</th>
        <th>名字</th>
        <th>小标题</th>
        <th>图片</th>
        <th>所属城市</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <foreach name="list" item="module" >
    <tr>
        <td>{++$i}</td>
        <td class="center">{$module.name}</td>
        <td class="center">{$module.subtitle}</td>
        <td class="center"><a title="{$module.name}" href="{$module.image}" class="cboxElement"><img class="dashboard-avatar"  src="{$module.image}" alt="{$module.name}" style="display: block;"></a></td>
        <td class="center">{$module.city}</td>
        <td class="center">
            <!-- <a class="btn btn-success" href="#">
                <i class="glyphicon glyphicon-zoom-in icon-white"></i>
                View
            </a> -->
            <a class="btn btn-info btn-setting" href="#">
                <i class="glyphicon glyphicon-edit icon-white"></i>
               		 修改
            </a>
            <a class="btn btn-danger btn-delete" href="#" id="__CONTROLLER__/delete/id/{$module.id}">
                <i class="glyphicon glyphicon-trash icon-white"></i>
                	删除
            </a>
        </td>
    </tr>
    </foreach>
    </tbody>
    </table>
    </div>
    </div>
    </div>
    <!--/span-->

    </div><!--/row-->
</block>